package cn.b.sky.modeler.util;


import cn.b.sky.modeler.domain.Group;
import cn.b.sky.modeler.domain.User;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @Author: yueding
 * @Description:
 * @Date: Created in 17:34 2017/11/20
 * @Modified By:
 * Copyright(c) cai-inc.com
 */
public class SecurityUtils {

    public static User getCurrentUserObject() {
        return new User() {
            @Override
            public String getId() {
                return "1";
            }

            @Override
            public void setId(String var1) {

            }

            @Override
            public String getFirstName() {
                return "admin";
            }

            @Override
            public void setFirstName(String var1) {

            }

            @Override
            public void setLastName(String var1) {

            }

            @Override
            public String getLastName() {
                return "admin";
            }

            @Override
            public void setEmail(String var1) {

            }

            @Override
            public String getEmail() {
                return null;
            }

            @Override
            public String getPassword() {
                return null;
            }

            @Override
            public void setPassword(String var1) {

            }

            @Override
            public boolean isPictureSet() {
                return false;
            }

            @Override
            public List<Group> getGroups() {
                return Collections.emptyList();
            }

            @Override
            public List<String> getPrivileges() {
                return Arrays.asList("1","2");
            }
        };
    }
}
